import { createApp } from 'vue'
import 'vant/lib/index.css'
import './assets/css/style.css'
import App from './App.vue'
import store from "./store/index";
import router from "@/router";
import {
    Button,
    NavBar,
    Tabbar,
    TabbarItem,Checkbox,
    Toast,Icon,Popup,Swipe, SwipeItem,
    List,PullRefresh,ActionBarIcon,Search,
    Loading,Field,SwipeCell,Uploader,Form,
    // ActionSheet,DatetimePicker,
    Picker,CheckboxGroup,
    Dialog,Switch,RadioGroup, Radio } from 'vant'

// createApp(App).mount('#app'
const app = createApp(App)
// 注册vant组件
app.use(Button)
app.use(NavBar)
app.use(Tabbar)
app.use(TabbarItem)
app.use(Checkbox)
app.use(Toast)
app.use(Icon)
app.use(Popup)
app.use(Swipe)
app.use(SwipeItem)
app.use(List)
app.use(PullRefresh)
app.use(ActionBarIcon)
app.use(Search)
app.use(Loading)
app.use(Field)
app.use(SwipeCell)
app.use(Uploader)
app.use(Form)
// app.use(ActionSheet)
// app.use(DatetimePicker)
app.use(Picker)
app.use(CheckboxGroup)
app.use(Dialog)
app.use(Switch)
app.use(RadioGroup)
app.use(Radio)

app.use(store)
app.use(router)
app.mount('#app')
